/*
 * @Author: 陈 娇
 * @Date: 2021-04-25 09:54:40
 * @LastEditTime: 2021-08-21 10:10:14
 * @LastEditors: Please set LastEditors
 * @Description: 首页api
 * @FilePath: \ebc-admin\src\api\dashboard.js
 */
import request from '@/utils/request'

// 首页-待举报待处理事务
export function reportAuth(query) {
  return request({
    url: '/member/platform/statistical/pending/report/total',
    method: 'get',
    params: query
  })
}

// 首页-话题审核
export function topicAuth() {
  return request({
    url: '/circle/platform/statistical/pending/topic/total',
    method: 'get'

  })
}

// 首页-信息审核
export function infoAuth() {
  return request({
    url: '/sys/platform/statistical/pending/info/total',
    method: 'get'

  })
}

// 首页-商品审核
export function goodsAuth() {
  return request({
    url: '/sys/platform/statistical/pending/goods/total',
    method: 'get'

  })
}

// 首页-热门
export function topicHot(params) {
  return request({
    url: '/circle/topic/hot',
    method: 'get',
    params
  })
}
// 首页-热门搜索
export function searchHot(params) {
  return request({
    url: '/member/platform/home/search/top10',
    method: 'get',
    params
  })
}